package user;
import Book.BookList;
import Operation.*;

public abstract class User {
    public String name;
    IOperation[] iOperations;
    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
    //使用具体的操作方法
    public void doOperations(int choice, BookList bookList) {
        //创建一个对象
        IOperation iOperation = this.iOperations[choice];
        iOperation.work(bookList);

    }
}
